<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="echarts.min.js"></script>

</head>

<body>
    <div style="width: 600px;height: 400px;" id="main">

    </div>
</body>
<script>
    var chartDom = document.getElementById('main');
    var myChart = echarts.init(chartDom);
    var option;

    option = {
        xAxis: {
            type: 'category',
            data: []
        },
        yAxis: {
            type: 'value'
        },
        color: ['#5e86e5', '#7db9c3', '#6ba364'],
        series: [
            {
                data: [80, 60, 100],
                type: 'bar',
                colorBy: 'data',
                backgroundStyle: {
                    color: ['#5e86e5', '#7db9c3', '#6ba364']
                },

                barCategoryGap: 0,
                barMaxWidth: 100,
            }
        ]
    };

    option && myChart.setOption(option);
</script>

</html>